﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="_ultimosResultadosEquipo.ascx.cs" Inherits="BoxScore.juego._ultimosResultadosEquipo" %>
<h2>Ultimos Resultados</h2>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="230px" ShowHeader="false" GridLines="None"
    DataSourceID="ObjectDataSource1">
    <Columns>
        <asp:TemplateField ShowHeader="False">
            <ItemTemplate>
                <table>

                    <tr align="center" class="barra">
                        <th style="width: 140px;"></th>
                        <th style="width: 30px;">C</th>
                        <th style="width: 30px;">H</th>
                        <th style="width: 30px;">E</th>
                    </tr>
                
                
                    <tr>
                        <th align="left">
                            <asp:HyperLink ID="HyperLink2" runat="server" 
                                NavigateUrl='<%# "~/Equipo/Detalles.aspx?equipo=" + Eval("id_team_visitor", "{0}") %>' 
                                Text='<%# Eval("team_visitor", "{0}") %>'></asp:HyperLink>
                        </th>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("runs_visitor", "{0}") %>'></asp:Label></td>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("hit_visitor", "{0}") %>'></asp:Label></td>
                        <td>
                            <asp:Label ID="Label5" runat="server" 
                                Text='<%# Eval("error_visitor", "{0}") %>'></asp:Label></td>
                    </tr>
                    
                    <tr>
                        <th align="left">
                            <asp:HyperLink ID="HyperLink3" runat="server" 
                                NavigateUrl='<%# "~/Equipo/Detalles.aspx?equipo=" + Eval("id_team_hc", "{0}") %>' 
                                Text='<%# Eval("team_hc", "{0}") %>'></asp:HyperLink>
                        </th>
                        <td>
                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("runs_hc", "{0}") %>'></asp:Label></td>
                        <td>
                            <asp:Label ID="Label7" runat="server" Text='<%# Eval("hit_hc", "{0}") %>'></asp:Label></td>
                        <td>
                            <asp:Label ID="Label8" runat="server" Text='<%# Eval("error_hc", "{0}") %>'></asp:Label></td>
                    </tr>
                    <tr>
                        <td colspan="4" align="right">
                            <asp:HyperLink ID="HyperLink1" runat="server" CssClass="resaltante" 
                                NavigateUrl='<%# "~/Juego/Detalle.aspx?id=" + Eval("id", "{0}") %>'>Ver m&aacute;s...</asp:HyperLink></td>
                    </tr>
                    
                
                </table>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="getLatestResultByTeam" TypeName="BoxScore.Model.BoxScoreBD">
    <SelectParameters>
        <asp:QueryStringParameter Name="idEquipo" 
            QueryStringField="equipo" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>

